<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" template="/template/template_dialog.xhtml">
	<ui:define name="head">
		<title>风险评估</title>
		<link rel="stylesheet" href="/resources/plugins/datatables/dataTables.bootstrap.css" />
		<style>
.title {
	font-size: 18px;
	font-weight: bold;
	height: 30px;
	line-height: 30px;
}

#tbTitle span {
	font-size: 18px;
	font-weight: bold;
}

#tbDiv {
	display: none;
}
</style>
	</ui:define>
	<ui:define name="content">
		<div class="row" id="pieDiv">
			<div class="col-sm-12 title"></div>
			<div class="col-sm-6">
				<div class="box box-success">
					<div class="box-body">
						<div id="mainPie" style="height: 500px;"></div>
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="box box-success">
					<div class="box-body">
						<div id="subPie" style="height: 500px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div id="tbDiv">
			<div class="box box-success">
				<div class="box-header" id="tbTitle">
					<span></span>
					<!-- <button class="btn btn-primary" style="float:right" onclick="backToPie();">返回</button> -->
					<a onclick="backToPie();" style="float: right; cursor: pointer;">&lt;&lt;返回</a>
				</div>
				<div class="box-body">
					<table id='infoTb' class='table table-bordered table-hover dataTable'>
					</table>
				</div>
			</div>
		</div>
		<h:inputHidden id="stationName" value="#{request.getParameter('stationName')}"></h:inputHidden>
		<h:inputHidden id="stationId" value="#{request.getParameter('stationId')}"></h:inputHidden>
		<h:inputHidden id="type" value="#{request.getParameter('type')}"></h:inputHidden>
	</ui:define>
	<ui:define name="contentend">
		<script src="/resources/plugins/echarts/echarts.js"></script>
		<script src="#{request.contextPath}/resources/js/tables/mytable.js"></script>
		<script src="#{request.contextPath}/resources/plugins/datatables/jquery.dataTables.min.js"></script>
		<script src="#{request.contextPath}/resources/plugins/datatables/dataTables.bootstrap.min.js"></script>
		<script src="/resources/js/mycharts/pieChart.js"></script>
		<script src="/resources/js/array-util.js"></script>
		<script src="/resources/js/common.js"></script>
		<script src="riskEvaluateTypeDlg.js"></script>
		<script>
			var stationId;
			var type;
			$(function() {
				stationId = $("#stationId").val();
				type = $("#type").val();
				var t1 = window.setInterval(function() {
					var width = $(window).width();
					if (width != '0') {
						$("#mainPie").width(Number(width) / 2 - 40);
						$("#subPie").width(Number(width) / 2 - 40);
						getData();
						window.clearInterval(t1);
					}
				}, 20);
			});
		</script>
	</ui:define>
</ui:composition>



